<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="/common/commonTag.jsp"%>

<html>
	<head>
		<title>创建角色</title>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<link rel="stylesheet" href="${path}/css/backsys/ctx.css">
	</head>

	<body>
		<div class="ctx">
		<form action="${applicationScope.path}/privilegeEmp!addEmpRoleRes.action" method="post">
			<table class="ow" width="100%">
				<tr>
					<th height="30" colspan="2" align="left">分配资源</th>
				</tr>
				<tr>
					<td class="td3" align=left>
					
						<c:forEach var="res" items="${resList}">
							<div style="width:200px;float:left;">
								<c:forEach var="r" items="${emp.resource}">
									<c:if test="${r.resId == res.resId}">
										<c:set var="n" value="${res.resId}"></c:set>
										<input type="checkbox" name="resId" checked="checked" value="${res.resId}"/>${res.resName}
									</c:if>
								</c:forEach>
								<c:if test="${n != res.resId}">
									<input type="checkbox" name="resId" value="${res.resId}"/>${res.resName}
								</c:if>
							</div>
						</c:forEach>						
						
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<input type="hidden" name="baseform.param" value="${param.currentPage}" />
						<input type="hidden" name="emp.empNo" value="${emp.empNo}" />
						<input type="hidden" name="baseform.type" value="addRes" />
						<input type="submit" value="完成" />
					</td>
				</tr>
			</table>
		</form>
		</div>
	</body>
</html>
